package org.demo.multimodule.controller;

import org.demo.multimodule.service.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MultiModuleController {
    @Autowired
    private Service service;

    @GetMapping("/")
    public String home(){
        return service.getMessage();
    }
}
